﻿using Domain.Entity.Basic_information;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.Basic_information
{
    public class Customer_mentConfiger : IEntityTypeConfiguration<Customer_ment>
    {
        public void Configure(EntityTypeBuilder<Customer_ment> builder)
        {
            builder.ToTable(nameof(Customer_ment));
            builder.HasKey(e => e.Ct_id);
            builder.Property(e => e.Ct_id).HasColumnType("bigint");
            builder.Property(e => e.Ct_numbering).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_cl_name).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_lndustry).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_level).HasColumnType("int");
            builder.Property(e => e.Ct_label).HasColumnType("int");
            builder.Property(e => e.Ct_region).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_address).HasColumnType("varchar(200)");
            builder.Property(e => e.Ct_postcode).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_information).HasColumnType("varchar(200)");
            builder.Property(e => e.Ct_state).HasColumnType("tinyint").IsRequired().HasComment("客户状态：1、禁用 0、启用");
            builder.Property(e => e.Ct_name).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_phone).HasColumnType("varchar(11)");
            builder.Property(e => e.Ct_department).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_posts).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_email).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_qq).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_io_title).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_tp_identification).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_bank).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_ao_name).HasColumnType("varchar(64)");
            builder.Property(e => e.Ct_account).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_time).HasColumnType("DateTime");
            builder.Property(e => e.Is_del).HasColumnType("tinyint").IsRequired().HasComment("删除状态：0、已删除 1、未删除");
        }
    }
}
